<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    条件 ? 条件成立执行的语句 : 条件不成立执行的语句
    <script>
        2>3? alert("nihao") :alert("zhangxiaopang");
    </script>
</body>
</html>